package Day03;

public class OperDemo5 {
    public static void main(String[] args) {
        int age=21;
        System.out.println("age=");//age=
        System.out.println(age);//21
        System.out.println("age="+age);//age=21
        System.out.println("我今年"+age+"岁了");//我今年21岁了

        String name="LJ";
        System.out.println("大家好，我叫"+name);
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了");

        System.out.println(10+20+30+"");//60-----------string
        System.out.println(10+20+""+30);//3030---------string
        System.out.println(""+10+20+30);//102030-------string

    }
}
